package luccy.exception;

import java.lang.reflect.InvocationTargetException;

public class InvocationTargetRuntimeException extends LuccyRuntimeException {

	private static final long serialVersionUID = 7760491787158046906L;

	private Class targetClass;

	public InvocationTargetRuntimeException(Class targetClass,
			InvocationTargetException cause) {
		super("ELCY0003", targetClass.getName(), cause.getTargetException(),
				cause.getTargetException());
		this.targetClass = targetClass;
	}

	public Class getTargetClass() {
		return targetClass;
	}
}
